<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            display: flex;
            justify-content: center;
        }

        table {
            display: flex;
            justify-content: center;
        }

        div {
            border: 2px solid;
            width: 270px;
        }

        h2 {
            text-align: center;
        }
    </style>
</head>

<body>
    <div>
        <h2>新增或修改博客</h2>
        <table>
            <tr hidden>
                <td>id:</td>
                <td><input type="text" name="id"></td>
            </tr>
            <tr>
                <td>标题:</td>
                <td><input type="text" name="title"></td>
            </tr>
            <tr>
                <td>摘要:</td>
                <td><input type="text" name="summary"></td>
            </tr>
            <tr>
                <td>内容:</td>
                <td><input type="text" name="content"></td>
            </tr>
            <tr>
                <td>分类:</td>
                <td><input type="text" name="sort"></td>
            </tr>
            <tr>
                <td>作者:</td>
                <td><input type="text" name="author"></td>
            </tr>
            <tr>
                <td><input type="button" value="保存" onclick="save()"></td>
                <td><input type="button" value="取消" onclick="cancel()"></td>
            </tr>
        </table>
    </div>
    <script src="./js/jquery-3.6.0.min.js"></script>
    <script src="./js/init.js"></script>
</body>

</html>